#include <gio/gio.h>

int main(int argc,char *argv[])
{
    GFile *file = g_file_new_for_path("test.txt");
    GFileInputStream *fileInputStream = g_file_read(file, NULL, NULL);
    GDataInputStream *dataInputStream = g_data_input_stream_new(G_INPUT_STREAM(fileInputStream));
    gint16 n = 0;

    n = g_data_input_stream_read_int16(dataInputStream, NULL, NULL);
    g_message("n=%d", n);

    g_object_unref(file);
    return 0;
}
